package org.colafries.admin.entity.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.LinkedHashMap;
import java.util.List;


@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class CustomQueryRspVO extends ColafriesBaseVO{
    /**
     * 模型id
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer modelId;
    /**
     * 自定义查询生成的SQL
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String customQuerySql;
    /**
     * 查询列
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<ColumnRspVO> columns;
    /**
     * 查询结果
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<LinkedHashMap<String, Object>> rows;
    /**
     * SQL执行时间(ms)
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private double execTime;

}
